<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<script
	src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
<script
	src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0rc1/angular-route.min.js"></script>
<script src="js/authentication.js"></script>
<link rel="stylesheet"
	href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<title>SignUp for MILI Application</title>
</head>
<body ng-app="authentication" ng-controller="loginController">
<form name = "signupForm">
<div class="col-sm-8" style="float: right">
	<table>
	<tr>
	<td><label for="textEdit">First Name :</label></td>
	<td><input class="form-control" name="userName" type="text"
		placeholder="FirstName" required ng-model="session.firstName" /></td>
	<tr><td><label for="textEdit">Last Name :</label></td>
	<td><input class="form-control" name="lastName" type="text"
		placeholder="LastName" required ng-model="session.lastName" /></td>
	<tr><td><label for="textEdit">User Name :</label></td>
	<td><input class="form-control" name="userName" type="text"
		placeholder="Username" required ng-model="session.username" /></td>
	<tr><td><label for="textEdit">Password :</label></td>
	<td><input class="form-control" name="password" type="text"
               ng-maxlength="20" placeholder="password" required ng-model="session.password" ng-minlength='8'/></td>

	<tr><td><label for="textEdit">Mobile No :</label></td>
	<td><input class="form-control" name="mobileNo" type='number'
		placeholder="MobileNo" required ng-model="session.mobileNo" ng-maxlength='10'/></td>
	<tr><td><label for="textEdit">Email Id :</label></td>
	<td><input class="form-control" name="emailId" type="text"
		placeholder="emailId" required ng-model="session.emailId" /></td>
		</tr>
	</table>	
	<div class="form-group">
		<button type="submit" class="btn btn-primary pull-left" value="Save" title="Save"  ng-disabled='!signupForm.$valid' ng-click="createUser()">
			<span>Save</span>
		</button>
		</div>
		</div>
    <p ng-show="signupForm.password_c.$error.noMatch" class="error">Passwords do not match.</span>
</form>
</body>
</html>